Skip to content

fix: close confirmed unmappable retries and guard candidate inputs - #55

Merged
andrewperis merged 1 commit into
mainfrom
fix/retry-terminal-and-candidate-inputs
Nov 4, 2026
Merged

andrewperis merged 1 commit into
mainfrom
fix/retry-terminal-and-candidate-inputs

Conversation

@andrewperis

Copy link
Copy Markdown
Contributor

Summary

Addresses both automated findings on merged PR #54:

  • Unmappable retry: after a consumed retry has a confirmed, retained failed/cancelled/succeeded provider outcome that cannot map to Comic Manifest, confirm the mapping-blocked event and close the exhausted host job. Return contract-mapping-blocked with job_closed: true; preserve the prior result and both provider outcomes without fabricating a second Comic result or terminal result link. Uncertain writes/readbacks/close appends and timeouts remain unresolved.
  • Empty prompt bindings: the bounded no-output candidate path now returns ACTUAL_INPUTS unless exactly one prompt binding exists. Schema-valid empty bindings no longer throw; unsupported multiple bindings are diagnosed too.

The one-job-per-store lifetime limit remains unchanged. Confirmed closure does not enable another submission in the same store. Documentation distinguishes host closure from unresolved contract mapping and uncertain persistence.

Validation

Reproduced the empty-binding TypeError and all three unmappable second-attempt cases on merged main 6f1bc1994886a737106d471c8a0e88cd30c94ce2 before fixing them.

  • Full suite: 806/806 on Node 22.12.0 and 24.22.2.
  • Focused candidate/orchestration suites: 87/87; ten new regression cases cover empty/multiple bindings, second-attempt output-validation/cancellation/mismatched success, outcome-readback/mapping-append/close-append/ambiguous-close faults, and second-attempt timeout.
  • Offline Comic Manifest conformance: 326/326, network tripwire active, all 31 fixtures byte-identical.
  • Context Builder check: 307/307, reference flows and readiness passed.
  • git diff --check passed; clean committed checkout. No separate lint/typecheck scripts configured.

Constitutional and release impact

  • Constitution: 1.0.0, constitution/v1.0.0, commit a9cc8a503aa30e17820edc62ac95f7cbe10e0564.
  • Profiles: universal and runtime implementation.
  • Accountable human owner/reviewer: @andrewperis.
  • No normative adoption, schema change, immutable release change, real provider, storage expansion, merge or release. Existing candidate exact-version opt-in and default v1 behavior remain intact.

Boundaries and dependencies

  • All tests and fixtures are synthetic or already public; no private context, secrets or creative content.
  • Existing one-job-per-store design preserved.
  • Confirmed host closure retains protected evidence; uncertain persistence is never reported as confirmed closure.
  • No result fabrication, extra retry, automatic recovery or new contract mapping.
  • Documentation and changelog updated.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T17:22:21.936369Z 3aa53e7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@andrewperis
andrewperis merged commit 6d5b779 into main Nov 4, 2026
2 checks passed
@andrewperis
andrewperis deleted the fix/retry-terminal-and-candidate-inputs branch November 4, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant